<!DOCTYPE html>
<html>

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script> </head>

<body>
    <h1>Example heading
        <span class="badge badge-secondary">New</span></h1>
    <h2>Example heading
        <span class="badge badge-secondary">New</span></h2>
    <h3>Example heading
        <span class="badge badge-secondary">New</span></h3>
    <h4>Example heading
        <span class="badge badge-secondary">New</span></h4>
    <h5>Example heading
        <span class="badge badge-secondary">New</span></h5>
    <h6>Example heading
        <span class="badge badge-secondary">New</span></h6>
</body>

</html>